﻿using System.Windows.Forms;

namespace FileRenamer
{
	public partial class display : Form
	{
		public display()
		{
			InitializeComponent();

			Properties.Settings setting = Properties.Settings.Default;
			c_FromRegex.DataBindings.Add("Text", setting, "RegFrom");
			c_ToRegex.DataBindings.Add("Text", setting, "RegTo");
			c_Userdef.DataBindings.Add("Text", setting, "UserDef");
		}

		private void display_FormClosing(object sender, FormClosingEventArgs e)
		{
			Properties.Settings.Default.Save();
		}
	}
}
